import http from './http'


const login = (params: any) => {
	return http.myRequest({
		url: '/user/signIn',
		method: 'post',
		data: params
	})
}

const register = (params: any) => {
	return http.myRequest({
		url: '/user/signUp',
		method: 'post',
		data: params
	})
}

const update = (params:any)=>{
	return http.myRequest({
		url:'/user/update',
		method:'post',
		data:params
	})
}
export default {
	login,
	register,
	update 
}